package com.xnfh.home.pop

import android.content.Context
import android.view.View
import com.bigkoo.pickerview.builder.OptionsPickerBuilder
import com.bigkoo.pickerview.listener.OnOptionsSelectListener
import com.bigkoo.pickerview.view.OptionsPickerView
import com.lxj.xpopup.core.BottomPopupView
import com.xnfh.home.R
import com.xnfh.home.databinding.PopSelectCropBinding

/**
 * @Description:选择作物wheelView
 * @Author: ziheng
 * @CreateDate: 2023/11/22 13:39
 * @UpdateUser: ziheng
 * @UpdateDate: 2023/11/22 13:39
 * @UpdateRemark: 更新说明
 */
class SelectCropPop(context: Context): BottomPopupView(context) {
    override fun getImplLayoutId(): Int {
        return R.layout.pop_select_crop
    }
    lateinit var mBind: PopSelectCropBinding
    lateinit var pickerBuilder: OptionsPickerView<Any>

    override fun onCreate() {
        super.onCreate()
        mBind = PopSelectCropBinding.bind(popupImplView)


    }

    open fun setWheelViewData(list: List<Any>){
        pickerBuilder.setPicker(list)
        pickerBuilder.show()
    }
}